package com.guigu.tms.manager.controller.wj;

import com.guigu.tms.commons.entity.base.PdFleet;
import com.guigu.tms.manager.feign.wj.FleetFeignClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/pdFleet")
public class FleetController {

    @Autowired
    FleetFeignClient fleetFeignClient;

    @GetMapping("/findPdFleetList")
    public List<PdFleet> findPdFleetList(){
        return fleetFeignClient.findPdFleetList();
    }
}
